package top.ranzhang.bean.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ran
 * @since 2025-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("homework_grades")
public class HomeworkGrades implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "homework_id", type = IdType.AUTO)
    private Integer homeworkId;

    @TableField("student_id")
    private Integer studentId;

    @TableField("course_id")
    private Integer courseId;

    @TableField("assignment_title")
    private String assignmentTitle;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("submission_date")
    private LocalDateTime submissionDate;

    @TableField("score")
    private BigDecimal score;

    @TableField("feedback")
    private String feedback;

    @TableField("attachment_path")
    private String attachmentPath;


}
